how to check if textbox is empty in c#

129

c# check if textbox is not empty -

if (String.IsNullOrEmpty(textBox1.Text))
{
    // Do something...
}

how to check if textbox is empty in c# -

string.IsNullOrWhiteSpace(textBox.Text); // returns boolean

Comments

Submit
0 Comments